Prevent initialization failure with newer (2.23+) glibc in use.
authorMaxim Ostapenko <m.ostapenko@partner.samsung.com>
Fri, 23 Sep 2016 07:40:55 +0000 (07:40 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 2 Jun 2017 13:11:29 +0000 (13:11 +0000)
commite73c5399d25d5045fce251c86c0352c245706e60
tree94e04d85eff92f1de994a386d0cfdb60fba4d604
parent88ea2fce59f9728b755180a3ae97fe0d46c81a9e
Prevent initialization failure with newer (2.23+) glibc in use.

This patch is pretty the same as http://reviews.llvm.org/D20235 that we used
for ASan. Using the same hack for MSan fixes its initialization with newer
Glibc in use.

Differential Revision: https://reviews.llvm.org/D24736

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@282232 91177308-0d34-0410-b5e6-96231b3b80d8

Gbp-Pq: Name upstream-msan-prevent-initialization-failure.diff
compiler-rt/lib/asan/asan_malloc_linux.cc
compiler-rt/lib/msan/msan_interceptors.cc